<template>
  <div id="app">
    <img alt="Vue logo" src="../../assets/logo.png" />
    <p>我是index</p>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
  data() {
    return {
      name1: "张三",
      name2: "李四",
    };
  },
  methods: {
    setMsg1(data) {
      this.name1 = data;
    },
    setMsg2(data) {
      this.name2 = data;
    },
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
